import { _decorator, Component, Node, SpriteFrame } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('ImgManager')
export class ImgManager extends Component {
  @property([SpriteFrame]) cardsSF: SpriteFrame[] = []; // 卡片数组

  getCardSFById(id: TCardId) {
    return this.cardsSF[id];
  }

  getCardBackSF() {
    return this.cardsSF[0];
  }

  start() {}
  update(deltaTime: number) {}
}

export type TCardId = 1 | 2 | 3 | 4 | 5 | 6;
